<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="js/jquery-1.12.0.min.js"></script>
</head>

<body>

	<form method="post" action="login">
		<table>
			<tr>
				<td>账号</td>
				<td>
					<input type="text" id="sailName" name="sailName" value="" >
				</td>
			</tr>
			<tr>
				<td>密码</td>
				<td>
					<input type="password" id="sailPasswd" name="sailPasswd" value="" >
				</td>
			</tr>
			<tr>
				<td></td>
				<td>
					<input type="submit"  value="登录" id="submit"><input type="button"  value="注册商家" onclick="javascript:window.location.href='regist.html'">
				</td>
			</tr>
			
		</table>
	</form>
<!--  	<script type="text/javascript">
		
			
			
		$('#submit').click(function(){
				

			$.post("login", 
					{ sailName: $("#sailName").val(), sailPasswd: $("#sailPasswd").val() },
					function(result){
						if(result==""){
							alert("用户名或密码不正确请重新输入！");
						}else{
							alert("恭喜登录成功！");
							$.ajax(function(){
								url:"storeIndex.jsp",
								data:"store",
								type:"post"
								
							});
						}
			});
		});
		
	</script>  -->
	
</body>
</html>


















